<?php
	include_once('../sys/sys.php');
	//定义系统路径
	define('FLYLUO_DIR','flyluo');
	define('FLYLUO_PATH',SITE_PATH . FLYLUO_DIR . '/');
	define('FLYLUO_FRAMEWORK_PATH',FLYLUO_PATH . 'framework/');
	//初始化加载项目
	loadFramework(FLYLUO_DIR);
	//初始化类对象
	$flyluo = flyluomanager::getInstance();
	
	
	
	
	
	function load($file) {
		require $file;
	}
	
	function loadFramework($framework) {
		try {
			load(SITE_PATH . $framework . '/framework/' . $framework . '.php');
		} catch (Exception $e) {
			echo "无法加载" . SITE_PATH . $framework . '/framework/' . $framework . '.php';
		}
	}
	
	
	
	
?>